# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-azure-mgmt-resource
_pkgname=azure-mgmt-resource
pkgver=24.0.0
pkgrel=1
pkgdesc='Microsoft Azure Resource Management Client Library for Python.'
arch=('any')
url='https://pypi.org/project/azure-mgmt-resource/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.zip")
sha512sums=('8017cb17a0bf865bdb64baf6d1df220f32a44cf9b8870cd4962908028a20e9e0f26f417cf793ec396666bd99cbc831d7686198eb1a3f58fd6feb3cbec3b7c207')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

